


#import "HDownloadDataTableViewCell.h"

@interface HDownloadDataTableViewCell ()

@end

@implementation HDownloadDataTableViewCell



- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 初始化子视图
        [self initLayout];
    }
    return self;
}

- (void)initLayout
{
    self.theItemLabel = [[UILabel alloc] initWithFrame:CGRectMake(16, 10, ScreenWidth-16-16-40, 30)];
    self.theItemSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(ScreenWidth-16-40, 10, 30, 20)];
    
    [self.contentView addSubview:self.theItemLabel];
    [self.contentView addSubview:self.theItemSwitch];
}

@end
